package com.evildog.workspace.dependencies.mybatis.enums;

import com.evildog.workspace.common.intefaces.ICustomExceptionDesc;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 返回前端状态码
 *
 *
 */
@AllArgsConstructor
@Getter
public enum MybatisCustomExceptionDesc implements ICustomExceptionDesc {


    /* ============================     custom status code    =================================================  */

    /* ============================     mybatis status code    =================================================  */
    QUERY_CONDITION_PARSE_ERROR("B105001", "query condition 解析字段值异常","query condition 解析字段值异常"),
    MISSING_ID_FIELD("B105003", "delete时未指定id", "delete时未指定id"),
    INVALID_LINK_REMOVE_IDS("B105003", "删除关联表，functions/linkIds长度不一致", "删除关联，functions/linkIds长度不一致"),
    INVALID_STATUS("B105004", "错误的状态", "错误的状态"),

    ;


    /**
     * 状态码
     */
    private String code;
    /**
     * 信息，前端展示信息
     */
    private String message;

    /**
     * 描述
     */
    private String description;


}
